package cn.sc.summer.daoapi.dao;

import cn.sc.summer.daoapi.po.SysApiRoute;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.sc.summer.mybatis.base.SuperMapper;
import cn.sc.summer.protocol.form.route.GetBindingApiForm;
import cn.sc.summer.protocol.vo.route.RouteApiVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 接口：api接口路由关联表mapper
 *
 * @author a-xin
 * @date 2024/5/23 14:30
 */
@Mapper
@InterceptorIgnore(tenantLine = "1", others = {"del@1"})
public interface SysApiRouteMapper extends SuperMapper<SysApiRoute> {
    //@InterceptorIgnore(tenantLine = "1") 忽略拦截器注释

    /**
     * 分页查询路由绑定的api接口信息
     *
     * @param sysApiRoutePage 分页参数
     * @param form            查询表单
     * @return 绑定信息
     */
    Page<RouteApiVO> selectRouteApiPage(@Param("page") Page<SysApiRoute> sysApiRoutePage,
                                        @Param("form") GetBindingApiForm form);

}
